<template>
    <div>
        <div @click="checkData">点击check</div>
        <condition v-model="conditionData" ref="conditionRef"></condition>
        <div>{{conditionData}}</div>
    </div>

</template>
<script lang="ts" setup>
import condition from '@/components/Condition/index.vue'
import { ref } from 'vue'
const conditionData = ref({
    boxType: 'group',
    logic: 'and',
    group: [],
})
const conditionRef = ref()
const checkData = () => {

   if(!conditionRef.value.checkData()){
     alert('请填写完整')
   }
}
</script>